package com.snnsh.kjb.lottery.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * packageName com.snnsh.kjb.lottery.util
 *
 * @author wick
 * @version V1.0.0
 * @date 2025/5/27
 */
public class TimeUtil {

    public static String getDatetimeString(Date date){
        String dateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
        return dateTime;
    }

    public static String getDatetimeString(){
        return getDatetimeString(new Date());
    }
}
